<script setup lang="ts">
import router from '@/router'

function handleFresh() {
  location.reload()
}
function goBack() {
  router.push('/main')
}
</script>

<template>
  <div class="notfound">
    <div class="text">抱歉！您所访问的页面不存在，请重新加载！</div>
    <div class="btns">
      <div class="item fresh" @click="handleFresh">
        <el-icon>
          <RefreshRight />
        </el-icon>
        <span>刷新页面</span>
      </div>
      <div class="item back" @click="goBack">
        <el-icon>
          <ArrowLeft />
        </el-icon>
        <span>返回首页</span>
      </div>
    </div>
  </div>
</template>
<style lang="less">
.notfound {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;
  .h_title {
    font-size: 56px;
    color: #409ef5;

    margin-bottom: 30px;
  }
  .text {
    font-size: 20px;
    color: #409ef5;
    opacity: 0.7;
    margin-bottom: 25px;
  }
  .btns {
    display: flex;
    .item {
      display: flex;
      align-items: center;
      color: #409ef5;
      margin-right: 60px;
      cursor: pointer;
    }
    span {
      padding: 0 10px;
    }
  }
}
</style>
